#pragma once

#include"HiKernel/HiModule.h"


class HI_DLLEXPORT mHiHUD : public HiModule
{
private:

	struct sHUDTexture
	{
		std::string HUDImageFName;

	};

	std::vector<sHUDTexture*> m_vHudMenu;

protected:

	int m_iSec;
	int m_iMin;

	unsigned int usUiX, usUiY;

	NiFont* m_spHUDFont;

	NiScreenTexture* m_spLoadLogo;	
	NiScreenTexture* m_spLoadPanic;

	NiScreenTexture* m_spLoadBox1;
	NiScreenTexture* m_spLoadBox2;
	NiScreenTexture* m_spLoadBox3;

	NiOldString2D* m_spScoreCountString;
	NiOldString2D* m_spBabyString;
	NiOldString2D* m_spBabyCountString;
	NiOldString2D* m_spTimeLeftString1;
	NiOldString2D* m_spTimeLeftString2;
	NiOldString2D* m_spNumString;
	NiOldString2D* m_spTimeString;
	NiOldString2D* m_spScoreString;
	NiOldString2D* m_spPlaceHolderString;

	NiSourceTexture* m_pkBoxTexture1;
	NiSourceTexture* m_pkBoxTexture2;
	NiSourceTexture* m_pkBoxTexture3;

	NiSourceTexture* m_pkSourceTexture1;

public:

	mHiHUD(HiXmlNode*xml=NULL);                                   
	virtual ~mHiHUD() {}          

	void PostConfig();
           
	void Update();     
	void Render();    

	bool HandleMessage(const Telegram& msg);

	int ParseXml(HiXmlNode*xml);

};